package cn.edu.besti.cs1623.M20162319;

/**
 * Created by hasee on 2017/11/6.
 */
public class Searchingmain {
    public static void main(String[] args) {
        Comparable[]list = new Comparable[5];
        Searching search =new Searching();
        list[0]= 4;
        list[1]= 5;
        list[2]= 16;
        list[3]= 2016;
        list[4]= 20162319;
        Comparable found = search.linearSearch(list,20162319);
        if (found==null)
            System.out.println("这里没有你需要的元素");
        else
            System.out.println("Found:"+found);
    }
}
